<?php

namespace NuitInfo2013\MainBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class MainController extends Controller
{
    public function indexAction()
    {
    	if (!$this->get('security.context')->isGranted('IS_AUTHENTICATED_REMEMBERED'))
      		return $this->redirect($this->generateUrl('fos_user_security_login'));
       
        return $this->render('NuitInfo2013MainBundle:Main:index.html.twig');
    }

    public function connectionAction()
    {
        return $this->render('NuitInfo2013MainBundle:Main:connection.html.twig');
    }
    
    public function contactAction() {
        return $this->render('NuitInfo2013MainBundle:Main:contact.html.twig');
    }
    
    public function rechercheAction() {
        return $this->render('NuitInfo2013MainBundle:Main:rechercheGuide.html.twig');
    }
    
    public function homepageAction() {
        return $this->render('NuitInfo2013MainBundle:Main:homepage.html.twig');
    }
}
